package flexibility;

import java.util.Date;

public class uploadFileInfo {
	private Integer role;
	private Integer assignmentID;
	private Integer studentID;
	private Integer teacherID;
	private Integer courseID;
	private String toDate;
	
	/**
	 * ifUpdate - shows if the  file the user want to upload should update the existing one or not
	 */
	private Boolean ifUpdate;
	
	/**
	 * fileID - the fileID that the user wants to update
	 */
	private Integer fileID;
	private Integer semesterID;
	private Date assignmentCommitDate;
	private Boolean ifLate=false; //shows if the submission of student's assignment was late
	private Integer teacherFileType; //teacher chooses the type of the uploaded file
									//0=upload new assignment
									//1=upload feedback 
									//2 = upload comment

	
	
	public void setRole(Integer role){
		this.role=role;
	}
	public void setIfLate(Boolean ifLate){
		this.ifLate=ifLate;
	}
	
	public void setfileID(Integer id){
		this.fileID=id;
	}
	public void setIfUpdate(Boolean ifUpdate){
		this.ifUpdate=ifUpdate;
	}
	
	public void setcourseID(Integer id){
		this.courseID=id;
	}
	
	public void setTeacherFileType(Integer type){
		this.teacherFileType=type;
	}
	
	public void setAssignmentID(Integer assignmentID){
		this.assignmentID=assignmentID;
	}

	public void setStudentID(Integer studentID){
		this.studentID=studentID;
	}
	
	public void setTeacherID(Integer teacherID){
		this.teacherID=teacherID;
	}
	
	public void setToDate(String toDate){
		this.toDate=toDate;
	}
	
	public void setSemesterID(Integer semesterID){
		this.semesterID=semesterID;
	}
	
	public void setAssignmentCommitDate(Date date){
		this.assignmentCommitDate=date;
	}
	
	public Integer getRole(){
		return role;
	}
	
	public Integer getAssignmentID(){
		return assignmentID;
	}
	
	public Integer getStudentID(){
		return studentID;
	}
	
	public Integer getTeacherID(){
		return teacherID;
	}
	
	public Integer getTeacherFileType(){
		return teacherFileType;
	}
	
	public Integer getCourseID(){
		return courseID;
	}
	
	public Integer getSemesterID(){
		return semesterID;
	}
	
	public Date getAssignmentCommitDate(){
		return assignmentCommitDate;
	}
	
	public String getToDate(){
		return toDate;
	}
	public Boolean getIfUpdate(){
		return ifUpdate;
	}
	
	public Integer getFileID(){
		return fileID;
	}
	
	public Boolean getIfLate(){
		return ifLate;
	}
}
